package com.wy.test.util.security;

import java.util.HashSet;
import java.util.Set;

import com.wy.util.security.PurviewJudgementArithmetic;

public class PurviewJudgementArithmetic_test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Set<Integer> userPurviewSet = new HashSet<Integer>();
		for(int i=1;i<=30;i++){
			userPurviewSet.add(i);
		}
		
		Integer optPurview = 28;
		boolean rs = PurviewJudgementArithmetic.purviewJudgement(userPurviewSet, optPurview);
		
		if(rs){
			System.out.println("您拥有"+ optPurview +"权限");
		}else{
			System.out.println("您没有"+ optPurview +"权限");
		}
	}

}
